package com.jsj.domain;

import com.ruoyi.common.annotation.Excel;
import org.springframework.stereotype.Component;

/**
 * 文件查重对象 submission
 *
 * @author timec
 * @date 2022-08-09
 */
@Component
public class SimSubmission {
    /**
     * 主键
     */
    private long id;

    /**
     * 作业提交
     */
    @Excel(name = "作业提交")
    private int subTopId;

    /**
     * 题目
     */
    @Excel(name = "题目")
    private int problemId;

    /**
     * 文件名称
     */
    @Excel(name = "文件名称")
    private String fileName;

    /**
     * 保存地址
     */
    @Excel(name = "保存地址")
    private String filePath;

    /**
     * SimHash值
     */
    @Excel(name = "SimHash值")
    private String simHash;

    /**
     * 对比者
     */
    @Excel(name = "对比者")
    private String targetId;

    /**
     * 最大相似度
     */
    @Excel(name = "最大相似度")
    private short similarity;

    public SimSubmission() {
    }

    public SimSubmission(long id, int subTopId, int problemId, String fileName, String filePath, String simHash, String targetId, short similarity) {
        this.id = id;
        this.subTopId = subTopId;
        this.problemId = problemId;
        this.fileName = fileName;
        this.filePath = filePath;
        this.simHash = simHash;
        this.targetId = targetId;
        this.similarity = similarity;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public int getSubTopId() {
        return subTopId;
    }

    public void setSubTopId(int subTopId) {
        this.subTopId = subTopId;
    }

    public int getProblemId() {
        return problemId;
    }

    public void setProblemId(int problemId) {
        this.problemId = problemId;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getSimHash() {
        return simHash;
    }

    public void setSimHash(String simHash) {
        this.simHash = simHash;
    }

    public String getTargetId() {
        return targetId;
    }

    public void setTargetId(String targetId) {
        this.targetId = targetId;
    }

    public short getSimilarity() {
        return similarity;
    }

    public void setSimilarity(short similarity) {
        this.similarity = similarity;
    }

    @Override
    public String toString() {
        return "SimSubmission{" +
                "id=" + id +
                ", subTopId=" + subTopId +
                ", problemId=" + problemId +
                ", fileName='" + fileName + '\'' +
                ", filePath='" + filePath + '\'' +
                ", simHash='" + simHash + '\'' +
                ", targetId='" + targetId + '\'' +
                ", similarity=" + similarity +
                '}';
    }
}
